const http = require("http")
const Url = require('url')

http.createServer((request,response) => {
    //方式一
    // const url = new URL(request.url,'http://127.0.0.1')
    // console.log(url,url.searchParams.get('ke'))

    //方式二
    const url = Url.parse(request.url,true)
    console.log(url)
}).listen(8888)